<ui:composition template="/main.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">
	<ui:define name="content">
	<h:outputText value="#{userBean.exception}" style="color:red" />
	<h:form prependId="false">
		<h:inputHidden value="#{userBean.user.id}"/>
		<h:outputText value="#{webMsg['user.username']}" />:<p:inputText id="username" value="#{userBean.user.username}" validatorMessage="#{webMsg['user.username.valid']}"> <f:validateLength minimum="3"/> </p:inputText>
		<h:message for="username" style="color:red"/>
		<br/>
		<h:outputText value="#{webMsg['user.email']}" />:<p:inputText  id="email" value="#{userBean.user.email}"><f:validateLength minimum="3"/></p:inputText >
		<h:message for="email" style="color:red"/>
		<br/>
		<h:outputText value="#{webMsg['user.mobile']}" />:<p:inputText  id="mobile" value="#{userBean.user.mobile}"><f:validateLength minimum="3"/></p:inputText >
		<h:message for="mobile" style="color:red"/>
		<br/>
		<h:outputText value="#{webMsg['user.description']}" />:<p:inputText  id="description" value="#{userBean.user.description}"><f:validateLength minimum="3"/></p:inputText >
		<h:message for="description" style="color:red"/>
		<br/>						
		 <p:commandButton value="Submit"    
             action="#{userBean.update}" styleClass="ui-priority-primary"/>
	</h:form>
	</ui:define>
</ui:composition>